<script>
export default {
  onLaunch: function () {
    console.log("App Launch");
	// #ifdef H5
	let res ={
	account: "rt41685716590",
	add_integral: "0.00",
	add_ip: "121.35.103.16",
	add_time: 1685716590,
	avatar: "https://rpd.xinyuad.net/public/uploads/store/comment/648453fcaf1f2.jpeg",
	clean_time: 0,
	couponCount: 1,
	give_integral: "0.00",
	idcode: "v7L9rZ",
	integral: 0,
	is_promoter: true,
	last_ip: "116.30.103.41",
	last_time: 1686393919,
	level: 0,
	nickname: "1",
	now_money: "0.00",
	past_integral: "0.00",
	pay_count: 0,
	phone: null,
	sign_num: 0,
	spread_count: 0,
	spread_time: 0,
	spread_uid: 0,
	status: 1,
	token: "6599e6b7c09beaf30bc2c50bd9e151b1ba2323f3c49e4d57b40bdb47818b347b1b08a206a4990b2f8938045d52f30afd6f256e82ee63341f04fff65c240087a9853c83dd421b498a5f0315c03399e3755e26587a325f0c9532171b9075176f7e",
	uid: 4,
	user_type: "routine",
	}
	
	uni.setStorageSync("userInfo", res);
	// #endif
	let token = uni.getStorageSync("userInfo").token || ""
	if(token){
		this.$store.commit('setUserInfo')
	}

  },
  onShow: function () {
	  this.$api.post({
		url: "/ebapi/public_api/get_logo_url",
		success: (res) => {
			uni.setStorageSync("logo",res.logo_url)
		},
	  })	
     console.log("App Show");
  },
  onHide: function () {
    console.log("App Hide");
  },
};
</script>

<style lang="scss">
@import "uview-ui/index.scss";
@import "static/style/public.css";
/*每个页面公共css */
page {
  background: #fafafa;
  padding: 0 23rpx;
  max-width: 750px;
  width: 750rpx;
  box-sizing: border-box;
  font-size: 24rpx;
  color: #333333;
  font-family: PingFang SC-Heavy, PingFang SC;
}
</style>
